package com.example.demo.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BaseDao<T> {
    T get(String id);

    List<T> search(@Param("creations") Creation... creations);

    List<Map<String, Object>> grid(@Param("creations") Creation... creations);

    void insert(T t);

    void batchInsert(List<T> list);

    void update(T t);

    void delete(String id);

    void deleteByCreations(@Param("creations") Creation... creations);
}
